package DB.dto;

import java.io.Serializable;

public class DoctorHasOperatins implements Serializable
{
	/**
	 * This attribute maps to the column ID_OPERATION in the NURSE_HAS_OPERATINS table.
	 */
	protected int idOperation;

	/**
	 * This attribute maps to the column ID_NURSE in the NURSE_HAS_OPERATINS table.
	 */
	protected int idDoctor;

	/**
	 * Method 'NurseHasOperatins'
	 *
	 */
	public DoctorHasOperatins(int docid,int idOperation)
	{
        this.idDoctor = docid;
        this.idOperation = idOperation;
	}

    public DoctorHasOperatins() {
    }

    /**
	 * Method 'getIdOperation'
	 * 
	 * @return int
	 */
	public int getIdOperation()
	{
		return idOperation;
	}

	/**
	 * Method 'setIdOperation'
	 * 
	 * @param idOperation
	 */
	public void setIdOperation(int idOperation)
	{
		this.idOperation = idOperation;
	}

	/**
	 * Method 'getIdDoctor'
	 * 
	 * @return int
	 */
	public int getIdDoctor()
	{
		return idDoctor;
	}

	/**
	 * Method 'setIdDoctor'
	 * 
	 * @param idDoctor
	 */
	public void setIdDoctor(int idDoctor)
	{
		this.idDoctor = idDoctor;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof DoctorHasOperatins)) {
			return false;
		}
		
		final DoctorHasOperatins _cast = (DoctorHasOperatins) _other;
		if (idOperation != _cast.idOperation) {
			return false;
		}
		
		if (idDoctor != _cast.idDoctor) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idOperation;
		_hashCode = 29 * _hashCode + idDoctor;
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "DB.dto.NurseHasOperatins: " );
		ret.append( "idOperation=" + idOperation );
		ret.append( ", idDoctor=" + idDoctor);
		return ret.toString();
	}

}
